from django.conf.urls import url
from userinfo.views import MyCoureView, MyFav, MyFavTeac, MyFavCourse, MyMessage
from users.views import *

urlpatterns = [

    url(r'^modify_pwd/$', ResetView.as_view(), name='modify_pwd'),
    url(r'^forget/$', ForgetPwdView.as_view(), name='forget_pwd'),
    url(r'^login/$', LoginView.as_view(), name='login'),
    url(r'^reset/(?P<active_code>.*)/$', ResetView.as_view(), name='reset_pwd'),
    url(r'^logout/$', UserLogout.as_view(), name='logout'),

    # 由于开发进度不统一，
    # 为了能运行，以下是临时路由

    url(r'^info/$', UserInfoView.as_view(), name='user_info'),
    # ================用户中心=============
    url(r'^info/course$', MyCoureView.as_view(), name='mycourse'),
    url(r'^info/myfav_org$', MyFav.as_view(), name='myfav_org'),
    url(r'^info/myfav_teacher$', MyFavTeac.as_view(), name='myfav_teacher'),
    url(r'^info/myfav_course$', MyFavCourse.as_view(), name='myfav_course'),
    url(r'^info/mymessage$', MyMessage.as_view(), name='mymessage'),
    url(r'^info/image_upload$', ImageView.as_view(), name='image_upload'),


]
